<?php

/**
 * @author shuang
 * @date 2016-11-8 10:15:43
 */
use yii\helpers\Url;
?>
<div class="mb15">&nbsp;</div>
<?php if ($this->context->footerShow): ?>
    <?php if ($this->context->id == "account"): ?>
        <nav class="mui-bar mui-bar-tab">
            <a id="defaultTab" class="mui-tab-item <?php echo strtolower($this->context->action->id) == "txrecord" ? "mui-active" : null; ?>" href="<?php echo Url::toRoute("account/txrecord"); ?>">
                <span class="mui-icon mui-icon-extra mui-icon-extra-topic"></span>
                <span class="mui-tab-label">提现记录</span>
            </a>
            <a class="mui-tab-item <?php echo strtolower($this->context->action->id) == "txrules" ? "mui-active" : null; ?>" href="<?php echo Url::toRoute("account/txrules"); ?>">
                <span class="mui-icon mui-icon-extra mui-icon-extra-order"></span>
                <span class="mui-tab-label">提现规则</span>
            </a>
        </nav>
    <?php else: ?>
        <nav class="mui-bar mui-bar-tab mui-footer">
            <a id="defaultTab" class="mui-tab-item <?php echo (strtolower($this->context->id) == "site" || strtolower($this->context->id) == "article" ) ? "mui-active" : null; ?>" href="<?php echo Url::toRoute("site/index"); ?>">
                <span class="mui-icon mui-icon-home"></span>
                <span class="mui-tab-label">首页</span>
            </a>
            <a class="mui-tab-item <?php echo (strtolower($this->context->id)."/".strtolower($this->context->action->id) == "profile/invite") ? "mui-active" : null; ?>" href="<?php echo Url::toRoute(["profile/invite"]); ?>">
                <span class="mui-icon mui-icon-pengyouquan" style="font-size: 50px;width: 50px;height:50px;"></span>
                <span class="mui-tab-label">小伙伴</span>
            </a>
            <a class="mui-tab-item <?php echo ((strtolower($this->context->id) == "profile" && strtolower($this->context->action->id) !="invite") || strtolower($this->context->id) == "account") ? "mui-active" : null; ?>" href="<?php echo Url::toRoute("profile/info"); ?>">
                <span class="mui-icon mui-icon-person"></span>
                <span class="mui-tab-label">我的</span>
            </a>
        </nav>
    <?php endif; ?>
<?php endif; ?>